package com.nefu.huiyi.service.impl;

import com.nefu.huiyi.entity.StatsEntity;
import com.nefu.huiyi.mapper.StatsMapper;
import com.nefu.huiyi.service.DashboardService;
import org.springframework.stereotype.Service;

@Service
public class DashboardServiceImpl implements DashboardService {

    private final StatsMapper statsMapper;

    public DashboardServiceImpl(StatsMapper statsMapper) {
        this.statsMapper = statsMapper;
    }

    @Override
    public StatsEntity getDashboardStats() {
        return statsMapper.getStats();
    }
}